<?php
use yii\helpers\Html;
use yii\helpers\Url;

use common\models\MktChat;
?>

<a href="<?php echo Url::to(['wap/chat', 'id' => $model->sender->id]); ?>" class="weui_media_box weui_media_appmsg">
    <div class="weui_media_hd">
        <img class="weui_media_appmsg_thumb" src="<?php echo \common\wosotech\Util::getWxUserHeadimgurl($model->sender->theHeadimgurl, 46); ?>" alt="">
        <?php if ($model->recver->getUnreadRecvChatCount($model->sender->id)): ?>
        <div class="count"></div>
        <?php endif; ?>

    </div>
    <div class="weui_media_bd">
        <div class="weui_media_title">
            <div style="float:right;color:#999999 !important;font-size:15px;"><?php echo date("m-d",strtotime($model->create_time)); ?></div>
            <div style="margin-bottom: 5px;"><span class="name" style="color:#1e1e1e !important;"><?php echo $model->sender->theName; ?></span><?php echo $model->sender->theCompany; ?></div>
        </div>
        <div class="weui_media_desc ellipsis"><?php echo $model->theContent; ?></div>
    </div>
</a>

<?php
/*
`$model`: mixed, the data model
`$key`: mixed, the key value associated with the data item
`$index`: integer, the zero-based index of the data item in the items array returned by [[dataProvider]].
`$widget`: ListView, this widget instance

		<div href="" class="weui_media_box weui_media_appmsg">
			<div class="weui_media_hd">
				<img class="weui_media_appmsg_thumb" src="resources/images/avatar/tx.jpg" alt="">
				<div class=""></div>
			</div>
			<div class="weui_media_bd">
				<div class="weui_media_title">
					<div style="float:right;color:#999999 !important;font-size:15px;">08-12</div>
					<div style="margin-bottom: 5px;"><span class="name" style="color:#1e1e1e !important;">Windy</span>美吉姆武汉中心</div>
				</div>
				<div class="weui_media_desc ellipsis">招聘市场招聘市场招聘市场招聘市场经理</div>
			</div>
		</div>

*/